<script>
    function checkAll()
    {
    
    	var field=document.forms.deletefiles;
        for (i = 0; i < field.length; i++)
    	field[i].checked = true ;
    }
</script>